import requests


def get_token():
    url = "http://ihrm2-test.itheima.net/api/sys/login"
    head = {"Content-Type":"application/json"}
    body = {"mobile":"13800000002", "password":"123456"}
    resp = requests.post(url,headers=head, json=body)
    token = resp.json().get('data')
    return token



# if __name__ == '__main__':
#     token = get_token()
#     print(token)